package com.ScoresSystem.service;

import com.ScoresSystem.pojo.Student;
import com.ScoresSystem.pojo.Subject;

import java.util.List;

public interface SubjectService {
    List<Subject> getAllSubject(String name, int pageIndex, int pageSize);

    // 获取数据总条数
    int getCount(String studentName);

    Subject findSubjectByName(String subjectName);

    int addSubject(Subject subject);

    int updateSubject(Subject subject);

    int deleteSubject(String subjectNo);

    // 查询所有科目
    List<Subject> subjectSelect();
}
